package cn.jee.repository;

import cn.jee.entity.CollectionDemo;
import io.netty.util.internal.ObjectPool;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;
import java.util.Optional;

public interface CollectionDemoRepository extends JpaRepository<CollectionDemo, Long> {
  @Query("from CollectionDemo c join fetch c.keywords")
  Optional<CollectionDemo> findByIdJpql(long id);
}